var acceptClick;
var keyValue = "";
var bootstrap = function (a, b) {
    var d = b.frameTab.currentIframe().selectedRow;
    var c = {
        init: function () {
            c.bind();
            c.initData()
        }, bind: function () {
            a("#F_Nature").lrDataItemSelect({code: "CompanyNature", maxHeight: 230});
            a("#F_ParentId").lrCompanySelect({maxHeight: 180});
            a("#area").lrAreaSelect({maxHeight: 160})
        }, initData: function () {
            if (!!d) {
                keyValue = d.F_CompanyId;
                a("#form").lrSetFormData(d)
            }
        }
    };
    acceptClick = function (e) {
        if (!a("#form").lrValidform()) {
            return false
        }
        var f = a("#form").lrGetFormData(keyValue);
        if (f.F_ParentId == "" || f.F_ParentId == "&nbsp;") {
            f.F_ParentId = "0"
        }
        a.lrSaveForm(top.$.rootUrl + "/LR_OrganizationModule/Company/SaveForm?keyValue=" + keyValue, f, function (g) {
            if (!!e) {
                e()
            }
        })
    };
    c.init()
};